package HomeWork;
public class HomeWork09 {

	public static void main(String[] args) {
		// *��ĵڶ���д��
		/*				����      ������*�Ÿ�����   �ո����
	     *		     1    1            4  5-i
	    * *          2    2            3
	   * * *         3    3            2
	  * * * *        4    4            1
	 * * * * *       5    5            0
	 
	  * * * *        6    4   5-i      1
	   * * *         7    3            2
	    * *          8    2            3
	     *           9    1            4
	 * */
		
		for(int i = 1; i <= 9; i++){
			if(i<=5){
				for(int j = 1; j <= 5 - i; j++){
					System.out.print(" ");
				}
				for(int a = 1;a <= i;a++){
					System.out.print("* ");
				}
			}else{
				for(int j = 6; j <= i; j++){
					System.out.print(" ");
				}
				for(int a = 1;a <= 10- i;a++){
					System.out.print("* ");
				}
			}
			System.out.println();
		}

	}

}
